class Person {
    String name;
    int age;

    public Person() {
        System.out.println("Person()被调用");
    }

    public Person(String name) {
        this.name = name;
        System.out.println("Person(String)被调用");
    }
    public void display() {
        System.out.println("姓名"+name+",年龄"+age);
    }
}
class Student extends Person {
    public Student() {
        System.out.println("Student()被调用");
    }
    public Student(String name,int age) {
        super("夏兰");
        this.age = age;
    }
}
public class ZuoYe3 {
    public static void main(String[] args) {
        Student stu1 = new Student();
        Student stu2 = new Student("夏兰",23);
        stu2.display();
    }
}
